﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BankSystemWithCSharp
{
    public partial class GetMoneyPanel : UserControl
    {
        private IGetMoney getMoney = new GetMoneyController();
        public GetMoneyPanel()
        {
            InitializeComponent();
        }

        public void Clear()
        {
            moneyTextBox.Text = string.Empty;
        }

        private void getMoneyButton_Click(object sender, EventArgs e)
        {
            getMoney.GetMoney(moneyTextBox.Text);
            moneyTextBox.Text = string.Empty;
        }
    }
}
